import * as React from 'react';
import * as ReactDOM from 'react-dom';
// import App from './App';
import './index.css';
import registerServiceWorker from './registerServiceWorker';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import Home from './project/view/home/index';
import PaiHangBang from './project/view/pai-hang-bang/index';
import ZhuanPan from './project/view/zhuan-pan/index';
import Setting from './project/view/setting/index';
ReactDOM.render(
  <Router>
    <div>
      <Route exact={true} path="/" component={Home} />
      <Route path="/paihangbang" component={PaiHangBang} />
      <Route path="/zhuanpan" component={ZhuanPan} />
      <Route path="/setting" component={Setting} />
      <Route path="/home" component={Home} />
    </div>
  </Router>,
  document.getElementById('root') as HTMLElement
);

registerServiceWorker();
